package org.easy.amapiplocation;

import lombok.Data;

import javax.annotation.Resource;

@Data
public class AmapIpTemplate {


    @Resource
    private AmapIpProperties amapIpProperties;

    public IpAddress getIpAddress(String addrIp) {
        return new AmapIpClient().getAddress(amapIpProperties.getKey(), addrIp);
    }

}
